home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xaw / labelp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  2.9 KB  |  97 lines

  1. /*
  2. * $XConsortium: LabelP.h,v 1.24 89/06/08 18:05:01 swick Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /* 
  31.  * LabelP.h - Private definitions for Label widget
  32.  * 
  33.  */
  34.  
  35. #ifndef _XawLabelP_h
  36. #define _XawLabelP_h
  37.  
  38. /***********************************************************************
  39.  *
  40.  * Label Widget Private Data
  41.  *
  42.  ***********************************************************************/
  43.  
  44. #include <X11/Xaw/Label.h>
  45. #include <X11/Xaw/SimpleP.h>
  46.  
  47. /* New fields for the Label widget class record */
  48.  
  49. typedef struct _LabelClassPart {int foo;} LabelClassPart; /* Added tag. POHC 91/04/08 */
  50.  
  51. /* Full class record declaration */
  52. typedef struct _LabelClassRec {
  53.     CoreClassPart    core_class;
  54.     SimpleClassPart    simple_class;
  55.     LabelClassPart    label_class;
  56. } LabelClassRec;
  57.  
  58. extern LabelClassRec labelClassRec;
  59.  
  60. /* New fields for the Label widget record */
  61. typedef struct _LabelPart { /* Added tag. POHC 91/04/08 */
  62.     /* resources */
  63.     Pixel    foreground;
  64.     XFontStruct    *font;
  65.     char    *label;
  66.     XtJustify    justify;
  67.     Dimension    internal_width;
  68.     Dimension    internal_height;
  69.     Pixmap    pixmap;
  70.     Boolean    resize;
  71.  
  72.     /* private state */
  73.     GC        normal_GC;
  74.     GC          gray_GC;
  75.     Pixmap    stipple;
  76.     Position    label_x;
  77.     Position    label_y;
  78.     Dimension    label_width;
  79.     Dimension    label_height;
  80.     Dimension    label_len;
  81. } LabelPart;
  82.  
  83.  
  84. /****************************************************************
  85.  *
  86.  * Full instance record declaration
  87.  *
  88.  ****************************************************************/
  89.  
  90. typedef struct _LabelRec {
  91.     CorePart    core;
  92.     SimplePart    simple;
  93.     LabelPart    label;
  94. } LabelRec;
  95.  
  96. #endif /* _XawLabelP_h */
  97.